inspector: Don't unref NULL objects
authorTimm Bäder <mail@baedert.org>
Sat, 6 Sep 2014 17:46:27 +0000 (19:46 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 7 Sep 2014 01:35:23 +0000 (21:35 -0400)
commit53014d01322a24349cf1f7d54cf95c0fccddf2d0
treea23abc74d8c7bdd8f21b4f11feaf241d7d717302
parenta1af365566161067c4eb246a1c66e7914f119537
inspector: Don't unref NULL objects

When closing the application window before closing the inspector window,
the selected widget will be set to NULL once and all the property pages
will try to g_object_weak_unref that NULL widget, so bail out in
gtk_inspector_prop_list_set_object if it's NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=736201
gtk/inspector/prop-list.c